.class public Lcom/estrongs/android/pop/app/log/m;
.super Ljava/lang/Object;
.source "LogChooseManager.java"


# direct methods
.method public static a([I)I
    .locals 3

    const/4 v0, 0x0

    .line 16
    aget v1, p0, v0

    .line 17
    :goto_0
    array-length v2, p0

    if-ge v0, v2, :cond_1

    .line 18
    aget v2, p0, v0

    if-ge v2, v1, :cond_0

    .line 19
    aget v1, p0, v0

    :cond_0
    add-int/lit8 v0, v0, 0x1

    goto :goto_0

    :cond_1
    return v1
.end method

.method public static a(Landroid/content/Context;Ljava/lang/String;)Landroid/graphics/drawable/Drawable;
    .locals 1

    .line 12
    :try_start_0
    invoke-virtual {p0}, Landroid/content/Context;->getPackageManager()Landroid/content/pm/PackageManager;

    move-result-object p0

    const/4 v0, 0x0

    .line 13
    invoke-virtual {p0, p1, v0}, Landroid/content/pm/PackageManager;->getApplicationInfo(Ljava/lang/String;I)Landroid/content/pm/ApplicationInfo;

    move-result-object p1

    .line 14
    invoke-virtual {p1, p0}, Landroid/content/pm/ApplicationInfo;->loadIcon(Landroid/content/pm/PackageManager;)Landroid/graphics/drawable/Drawable;

    move-result-object p0
    :try_end_0
    .catch Landroid/content/pm/PackageManager$NameNotFoundException; {:try_start_0 .. :try_end_0} :catch_0

    return-object p0

    :catch_0
    move-exception p0

    .line 15
    invoke-virtual {p0}, Landroid/content/pm/PackageManager$NameNotFoundException;->printStackTrace()V

    const/4 p0, 0x0

    return-object p0
.end method

.method public static a(Landroid/content/Context;)Ljava/util/List;
    .locals 7
    .annotation system Ldalvik/annotation/Signature;
        value = {
            "(",
            "Landroid/content/Context;",
            ")",
            "Ljava/util/List<",
            "Lcom/estrongs/android/pop/app/log/LogChooseFileTypeItem;",
            ">;"
        }
    .end annotation

    .line 1
    invoke-static {}, Lcom/estrongs/fs/f;->d()Lcom/estrongs/fs/f;

    move-result-object v0

    .line 2
    new-instance v1, Ljava/util/ArrayList;

    invoke-direct {v1}, Ljava/util/ArrayList;-><init>()V

    :try_start_0
    const-string v2, "app://"

    .line 3
    invoke-virtual {v0, v2}, Lcom/estrongs/fs/f;->n(Ljava/lang/String;)Ljava/util/List;

    move-result-object v0

    .line 4
    invoke-interface {v0}, Ljava/util/List;->iterator()Ljava/util/Iterator;

    move-result-object v0

    :goto_0
    invoke-interface {v0}, Ljava/util/Iterator;->hasNext()Z

    move-result v2

    if-eqz v2, :cond_0

    invoke-interface {v0}, Ljava/util/Iterator;->next()Ljava/lang/Object;

    move-result-object v2

    check-cast v2, Lcom/estrongs/fs/g;

    .line 5
    invoke-interface {v2}, Lcom/estrongs/fs/g;->getName()Ljava/lang/String;

    move-result-object v3

    .line 6
    check-cast v2, Les/y10;

    .line 7
    invoke-virtual {v2}, Les/y10;->t()Ljava/lang/String;

    move-result-object v2

    .line 8
    invoke-static {p0, v2}, Lcom/estrongs/android/pop/app/log/m;->a(Landroid/content/Context;Ljava/lang/String;)Landroid/graphics/drawable/Drawable;

    move-result-object v4

    .line 9
    new-instance v5, Lcom/estrongs/android/pop/app/log/LogChooseFileTypeItem;

    const/4 v6, 0x0

    invoke-direct {v5, v2, v3, v4, v6}, Lcom/estrongs/android/pop/app/log/LogChooseFileTypeItem;-><init>(Ljava/lang/String;Ljava/lang/String;Landroid/graphics/drawable/Drawable;Z)V

    .line 10
    invoke-interface {v1, v5}, Ljava/util/List;->add(Ljava/lang/Object;)Z
    :try_end_0
    .catch Lcom/estrongs/fs/FileSystemException; {:try_start_0 .. :try_end_0} :catch_0

    goto :goto_0

    :catch_0
    move-exception p0

    .line 11
    invoke-virtual {p0}, Ljava/lang/Exception;->printStackTrace()V

    :cond_0
    return-object v1
.end method

.method public static a(Landroid/content/Context;Ljava/util/HashMap;)V
    .locals 3
    .annotation system Ldalvik/annotation/Signature;
        value = {
            "(",
            "Landroid/content/Context;",
            "Ljava/util/HashMap<",
            "Ljava/lang/Integer;",
            "Ljava/lang/Integer;",
            ">;)V"
        }
    .end annotation

    .line 20
    invoke-virtual {p1}, Ljava/util/HashMap;->keySet()Ljava/util/Set;

    move-result-object p1

    .line 21
    invoke-virtual {p0}, Landroid/content/Context;->getResources()Landroid/content/res/Resources;

    move-result-object p0

    const v0, 0x7f030012

    invoke-virtual {p0, v0}, Landroid/content/res/Resources;->getStringArray(I)[Ljava/lang/String;

    move-result-object p0

    .line 22
    new-instance v0, Ljava/util/HashSet;

    invoke-direct {v0}, Ljava/util/HashSet;-><init>()V

    .line 23
    invoke-interface {p1}, Ljava/util/Set;->iterator()Ljava/util/Iterator;

    move-result-object p1

    :goto_0
    invoke-interface {p1}, Ljava/util/Iterator;->hasNext()Z

    move-result v1

    const/4 v2, 0x1

    if-eqz v1, :cond_0

    invoke-interface {p1}, Ljava/util/Iterator;->next()Ljava/lang/Object;

    move-result-object v1

    check-cast v1, Ljava/lang/Integer;

    .line 24
    invoke-virtual {v1}, Ljava/lang/Integer;->intValue()I

    move-result v1

    packed-switch v1, :pswitch_data_0

    goto :goto_0

    :pswitch_0
    const/4 v1, 0x3

    .line 25
    aget-object v1, p0, v1

    invoke-interface {v0, v1}, Ljava/util/Set;->add(Ljava/lang/Object;)Z

    goto :goto_0

    :pswitch_1
    const/4 v1, 0x5

    .line 26
    aget-object v1, p0, v1

    invoke-interface {v0, v1}, Ljava/util/Set;->add(Ljava/lang/Object;)Z

    goto :goto_0

    :pswitch_2
    const/4 v1, 0x4

    .line 27
    aget-object v1, p0, v1

    invoke-interface {v0, v1}, Ljava/util/Set;->add(Ljava/lang/Object;)Z

    goto :goto_0

    .line 28
    :pswitch_3
    aget-object v1, p0, v2

    invoke-interface {v0, v1}, Ljava/util/Set;->add(Ljava/lang/Object;)Z

    goto :goto_0

    :pswitch_4
    const/4 v1, 0x2

    .line 29
    aget-object v1, p0, v1

    invoke-interface {v0, v1}, Ljava/util/Set;->add(Ljava/lang/Object;)Z

    goto :goto_0

    :pswitch_5
    const/4 v1, 0x0

    .line 30
    aget-object v1, p0, v1

    invoke-interface {v0, v1}, Ljava/util/Set;->add(Ljava/lang/Object;)Z

    goto :goto_0

    .line 31
    :cond_0
    invoke-static {}, Lcom/estrongs/android/pop/o;->A0()Lcom/estrongs/android/pop/o;

    move-result-object p0

    const-string p1, "new_file_notify_setting"

    invoke-virtual {p0, p1, v0}, Lcom/estrongs/android/pop/o;->b(Ljava/lang/String;Ljava/util/Set;)V

    .line 32
    invoke-static {}, Les/eo;->k()Les/eo;

    move-result-object p0

    invoke-virtual {p0}, Les/eo;->j()V

    .line 33
    invoke-static {}, Les/eo;->k()Les/eo;

    move-result-object p0

    invoke-virtual {p0, v2}, Les/eo;->a(Z)V

    return-void

    :pswitch_data_0
    .packed-switch 0x1
        :pswitch_5
        :pswitch_4
        :pswitch_3
        :pswitch_2
        :pswitch_1
        :pswitch_0
    .end packed-switch
.end method

.method public static b(Landroid/content/Context;)Ljava/util/List;
    .locals 7
    .annotation system Ldalvik/annotation/Signature;
        value = {
            "(",
            "Landroid/content/Context;",
            ")",
            "Ljava/util/List<",
            "Lcom/estrongs/android/pop/app/log/LogChooseFileTypeItem;",
            ">;"
        }
    .end annotation

    .line 1
    new-instance v0, Ljava/util/ArrayList;

    invoke-direct {v0}, Ljava/util/ArrayList;-><init>()V

    .line 2
    invoke-virtual {p0}, Landroid/content/Context;->getResources()Landroid/content/res/Resources;

    move-result-object p0

    const v1, 0x7f030011

    invoke-virtual {p0, v1}, Landroid/content/res/Resources;->getStringArray(I)[Ljava/lang/String;

    move-result-object p0

    .line 3
    new-instance v1, Lcom/estrongs/android/pop/app/log/LogChooseFileTypeItem;

    const/4 v2, 0x0

    aget-object v2, p0, v2

    const/4 v3, 0x1

    const v4, 0x7f0806ff

    invoke-direct {v1, v3, v4, v2, v3}, Lcom/estrongs/android/pop/app/log/LogChooseFileTypeItem;-><init>(IILjava/lang/String;Z)V

    invoke-interface {v0, v1}, Ljava/util/List;->add(Ljava/lang/Object;)Z

    .line 4
    new-instance v1, Lcom/estrongs/android/pop/app/log/LogChooseFileTypeItem;

    aget-object v2, p0, v3

    const/4 v4, 0x3

    const v5, 0x7f08070b

    invoke-direct {v1, v4, v5, v2, v3}, Lcom/estrongs/android/pop/app/log/LogChooseFileTypeItem;-><init>(IILjava/lang/String;Z)V

    invoke-interface {v0, v1}, Ljava/util/List;->add(Ljava/lang/Object;)Z

    .line 5
    new-instance v1, Lcom/estrongs/android/pop/app/log/LogChooseFileTypeItem;

    const/4 v2, 0x2

    aget-object v5, p0, v2

    const v6, 0x7f080704

    invoke-direct {v1, v2, v6, v5, v3}, Lcom/estrongs/android/pop/app/log/LogChooseFileTypeItem;-><init>(IILjava/lang/String;Z)V

    invoke-interface {v0, v1}, Ljava/util/List;->add(Ljava/lang/Object;)Z

    .line 6
    new-instance v1, Lcom/estrongs/android/pop/app/log/LogChooseFileTypeItem;

    aget-object v2, p0, v4

    const/4 v4, 0x6

    const v5, 0x7f0806f1

    invoke-direct {v1, v4, v5, v2, v3}, Lcom/estrongs/android/pop/app/log/LogChooseFileTypeItem;-><init>(IILjava/lang/String;Z)V

    invoke-interface {v0, v1}, Ljava/util/List;->add(Ljava/lang/Object;)Z

    .line 7
    new-instance v1, Lcom/estrongs/android/pop/app/log/LogChooseFileTypeItem;

    const/4 v2, 0x4

    aget-object v4, p0, v2

    const v5, 0x7f0806fa

    invoke-direct {v1, v2, v5, v4, v3}, Lcom/estrongs/android/pop/app/log/LogChooseFileTypeItem;-><init>(IILjava/lang/String;Z)V

    invoke-interface {v0, v1}, Ljava/util/List;->add(Ljava/lang/Object;)Z

    .line 8
    new-instance v1, Lcom/estrongs/android/pop/app/log/LogChooseFileTypeItem;

    const/4 v2, 0x5

    aget-object p0, p0, v2

    const v4, 0x7f0806f7

    invoke-direct {v1, v2, v4, p0, v3}, Lcom/estrongs/android/pop/app/log/LogChooseFileTypeItem;-><init>(IILjava/lang/String;Z)V

    invoke-interface {v0, v1}, Ljava/util/List;->add(Ljava/lang/Object;)Z

    return-object v0
.end method
